package com.chenyue.cm.user.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 订单评论信息
 * </p>
 *
 * @author Lbx
 * @since 2024-02-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="JdOrderComment对象", description="订单评论信息")
public class JdOrderComment extends Model<JdOrderComment> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private String id;

    @ApiModelProperty(value = "订单id")
    private String orderId;

    @ApiModelProperty(value = "商品id")
    private String goodsId;

    @ApiModelProperty(value = "商品名称")
    private String goodsName;

    @ApiModelProperty(value = "规格id")
    private String skuId;

    @ApiModelProperty(value = "商品属性")
    private String skuDetail;

    @ApiModelProperty(value = "会员id")
    private String memberId;

    @ApiModelProperty(value = "头像")
    private String memberPic;

    @ApiModelProperty(value = "评论人")
    private String memberName;

    @ApiModelProperty(value = "评价内容")
    private String commentContent;

    @ApiModelProperty(value = "评价图片")
    private String commentPics;
    @TableField(exist = false)
    @ApiModelProperty("评价图片")
    private List<String> commentPicArry;

    @ApiModelProperty(value = "是否展示 0 不展示 1展示")
    private Integer showFlag;

    @ApiModelProperty(value = "是否匿名 0匿名 1不匿名 ")
    private Integer anonymousFlag;

    @ApiModelProperty(value = "评论比重( 星级 )")
    private Integer scoreWeight;

    @ApiModelProperty(value = "创建人")
    private String createUser;

    @ApiModelProperty(value = "创建时间")
    private String createTime;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
